package com.huawei.utils;

public class EasyFactory {
	public static<T> T getNewInstance(Class<T> clazz) {
		T t =null;
		try {
			t=clazz.newInstance();
		} catch (Exception e) {
			System.out.println("简单工厂类异常");
			e.printStackTrace();
		}
		return t;
	}
}
